<?php
	$this->title('Add Diagnostic Test Entry');
?>

<h3><?=$this->title();?></h3>

<?=$this->form->create($medicalTestAnswer);?>
<?=$this->form->label('Patient');?>
<?php
	$patientCollection = array();
	foreach ($patients as $patient) {
		$patientCollection[$patient->id] = $patient->PatID;
	}
?>
<?=$this->form->select('patient_id', $patientCollection);?>
<?php
	foreach ($medicalTests as $medicalTest) {
		$medicalTestCollection[$medicalTest['id']] = $medicalTest['Name'];
	}
?>
<?=$this->form->label('Diagnostic Test Name');?>
<?=$this->form->select('test_id', $medicalTestCollection);?>
<?=$this->form->label('Result 1');?>
<?=$this->form->select('result1', array('NA' => 'NA', 'Borderline' => 'Borderline', 'High' => 'High', 'Low' => 'Low'));?>
<?=$this->form->label('Result 2');?>
<?=$this->form->select('result2', array('NA' => 'NA', 'Abnormal' => 'Abnormal', 'Borderline' => 'Borderline', 'Normal' => 'Normal'));?>
<?=$this->form->field('record_date', array('label' => 'Record Date'));?>
<?=$this->form->submit('Save'); ?>
<?=$this->form->end();?>